package com.feisuanyz.repository;

import com.feisuanyz.entity.TicketManagement;
import com.feisuanyz.entity.TicketManagementDO;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TicketManagementRepository extends JpaRepository<TicketManagement, Integer> {

    Optional<TicketManagement> findByEventId(Integer eventId);
    TicketManagementDO findByTicketId(Integer ticketId);
}